﻿using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Chip8Dev
{
	public partial class MainPage
	{
        private readonly String FileFilterC8Rom = "Chip8 Rom | *.c8;*.ch8;*.sc;*.bin";

		public MainPage()
		{
			this.InitializeComponent();

			// Insert code required on object creation below this point.
        }

        #region Routed Event Handlers

        private void BrowseClickHandler(Object sender, RoutedEventArgs args)
        {
            /* Create the dialog class */
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.Filter = FileFilterC8Rom;

            /* Show the dialog */
            if (dialog.ShowDialog() == true)
            {

            }
        }

        #endregion
    }
}